<script type="text/javascript">//<![CDATA[
    XHR.poll(3, '<%=url([[admin]], [[services]], [[chinadns-ng]], [[status]])%>', null,
        function(x, data) {
            var tb = document.getElementById('chinadns-ng_status');
            if (data && tb) {
                if (data.running) {
                    var links = '<em><b><font color=green>ChinaDNS-NG <%:RUNNING%></font></b></em>';
                    tb.innerHTML = links;
                } else {
                    tb.innerHTML = '<em><b><font color=red>ChinaDNS-NG <%:NOT RUNNING%></font></b></em>';
                }
            }
        }
    );
    //]]>
    </script>
    <style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>
    <fieldset class="cbi-section">
        <p id="chinadns-ng_status">
            <em><%:Collecting data...%></em>
        </p>
    </fieldset>